package com.dkd.model.base.constants;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 返回提示信息：1成功 0失败
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PromptMessageEnum implements IEnum<Integer> {

    SUCCEED(1,"succeed"),
    FAILURE(0,"failure");

    private Integer value;
    private String desc;

    PromptMessageEnum(final Integer value, final String desc){
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc(){
        return this.desc;
    }
}
